package com.homedo.odin.solution.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.homedo.odin.solution.model.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 * @author: zhaoxudong
 * @date: 2018/3/7 14:26
 * @Description:
 */
@Data
@ApiModel(description = "脏词信息")
@JsonIgnoreProperties(ignoreUnknown = true)
public class SensitiveWord extends BaseBean {

    @ApiModelProperty("脏词ID")
    private Integer id;
    @ApiModelProperty("脏词值")
    private String value;
    @ApiModelProperty("创建人id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createdBy;
    @ApiModelProperty("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createdTime;
    @ApiModelProperty("创建人名字")
    private String createdName;
}
